# coding:utf-8

from flask import render_template, redirect, url_for
from flask_login import current_user
from . import main_bp


@main_bp.route('/', methods=['GET'])
def index():
    if current_user.is_anonymous:
        return redirect(url_for('auth_bp.login'))
    return render_template('index.html')


